import time

import pygame

from config import Config


def time_num():
    time_nums = int(time.time() - Config.start_time)
    mine = str(time_nums // 60)
    sec = str(time_nums % 60)
    if len(mine) == 1:
        mine = '0' + mine
    if len(sec) == 1:
        sec = '0' + sec
    time_str = "{}:{}".format(mine, sec)

    return time_str
